dsh-smart-restart: Automatically wake up the main agent after DSH restart
The DSH plugin `edusrez/dsh-smart-restart` (v0.5.1, MIT License) aims to address the issue of work interruption caused by the main agent being unaware of service restarts. It identifies restarts by detecting changes in process PIDs and sends a Smart-restart notification to the agent upon startup to resume tasks. Core features include: 1. **Restart Detection and Notification**: Compares PIDs via `marker.json` to calculate downtime and utilizes the `agent/session-start` hook to send notifications. 2. **Smart Dispatch Priority**: Prioritizes processing in the order of `pending-notice.json` > `shutdown-notice.json` > default target.
Read More